package com.haiyou.common.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author root
 * @date 2018/12/7 10:05
 * 分页查询参数实体
 */
@ApiModel(value = "分页查询基础参数")
@Data
@Accessors(chain = true)
public class PageParam {
    /**
     * 页码
     */
    @ApiModelProperty(value = "第几页,默认1", name = "pageNum")
    private Integer pageNum = 1;
    /**
     * 每页大小
     */
    @ApiModelProperty(value = "每页显示条数，默认20", name = "pageSize")
    private Integer pageSize = 20;

}
